using System;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Hander.Forms.Frame
{
    public partial class OutputWindow : ToolWindow
    {
        public OutputWindow()
        {
            InitializeComponent();
        }

        public async void AppendTextAsync(string str)
        {

            await Task.Run(() =>
            {

                this.Invoke((Action)delegate
                {
                    //this.richTextBox1.AppendText("[" + DateTime.Now.Ticks + "]  " + str + "\r\n");
                    this.textBox1.AppendText("[" + DateTime.Now.Ticks + "]  " + str + "\r\n");
                    
                });

            });

        }

    }
}